<template>
    <div style="position: relative;">
        <el-button type="primary" v-if="showButton" @click="addIcon">新增</el-button>
        <router-view ref="routerView" :showDrawer="showDrawer" v-on:showDrawer="showDrawer = false"></router-view>
    </div>
</template>
<script>
export default {
    data() {
        return {
            tabLists: [],
            showButton: false,
            showDrawer: false
        }
    },
    methods: {
        addIcon() {
            this.showDrawer = true
        }
    }
};
</script>
<style lang="scss" scoped>
  .el-button {
    position: absolute;
    right: 5px;
    top: -38px;
    z-index:100
  }
</style>